/*
 * 文件名：SoftCoConstants.java
 * 版权：Copyright 2006-2014 Huawei Tech. Co. Ltd. All Rights Reserved. 
 * 描述： U1900系列网关配置相关常量
 * 修改人：h00200402
 * 修改时间：2014-6-3
 * 修改内容：新增
 */
package com.huawei.esdk.uc.device.common.constants;

/**
 * U1900系列网关配置相关常量
 * <p>
 * 
 * @author h00200402
 * @version eSpace UC V200R001C03 2014-6-3
 * @since eSpace UC V200R001C03
 */
public class SoftCoConstants
{
    /**
     * 连接协议 - TLS
     */
    public static final String PROTOCOL_TLS = "1";

    /**
     * 连接协议 - TCP
     */
    public static final String PROTOCOL_TCP = "0";

    /**
     * 关闭主/备统一网关服务器
     */
    public static final String BACKENABLE_FALSE = "0";
    
    /**
     * 开启主/备统一网关服务器
     */
    public static final String BACKENABLE_OPEN = "1";

    /**
     * 网关id
     */
    public static final String SOFTCO_ID = "softcoid";

    /**
     * 网关连接成功
     */
    public static final String CONNECT_ON = "1";

    /**
     * 网关连接失败
     */
    public static final String CONNECT_OFF = "0";
    /**
     * 主机
     */
    public static final String USING_MAIN = "1";
    /**
     * 备机
     */
    public static final String USING_BAK = "0";    
    /**
     * socket连接成功
     */
    public static final String SOCKET_SUCCESS = "socket.connect.success";

    /**
     * 网关连接成功
     */
    public static final String SOFTCO_SUCCESS = "softco.connect.success";

    /**
     * socket连接失败
     */
    public static final String SOCKET_FAILED = "socket.connect.failed";

    /**
     * 网关连接失败
     */
    public static final String SOFTCO_FAILED = "softco.connect.failed";

    /**
     * 时间格式
     */
    public static final String DATA_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 菜单id
     */
    public static final String BME_CURRENT_MENU_ID = "BMECurrentMenuId";

    /**
     * 超时时间
     */
    public static final int TIMEOUT = 60000;

    /**
     * 默认subpbxud
     */
    public static final Byte DEFAULT_SUBPBXUD = 0;

    /**
     * 启用号码通知订阅成功
     */
    public static final String SYSC_PHONE_SUBS_SUCCESS = "sync.phone.subscribe.success";

    /**
     * 启用号码通知订阅失败
     */
    public static final String SYSC_PHONE_SUBS_FAIL = "sync.phone.subscribe.fail";

    /**
     * 启用会议通知订阅成功
     */
    public static final String SYSC_CONF_SUBS_SUCCESS = "sync.conf.subscribe.success";

    /**
     * 启用会议通知订阅功能失败
     */
    public static final String SYSC_CONF_SUBS_FAIL = "sync.conf.subscribe.fail";

    /**
     * 启用SIP设备通知订阅成功
     */
    public static final String SYSC_SIP_SUBS_SUCCESS = "sync.sipEid.subscribe.success";

    /**
     * 启用SIP设备通知订阅功能失败
     */
    public static final String SYSC_SIP_SUBS_FAIL = "sync.sipEid.subscribe.fail";

    /**
     * 话务台组通知订阅成功
     */
    public static final String SYSC_ATTENDANTGROUP_SUCCESS = "sync.AttendantGroup.success";

    /**
     * 话务台组通知订阅功能失败
     */
    public static final String SYSC_ATTENDANTGROUP_FAIL = "sync.AttendantGroup.fail";

    /**
     * 启用时间段通知订阅成功
     */
    public static final String SYSC_TIME_SUBS_SUCCESS = "sync.timerange.subscribe.success";

    /**
     * 启用时间段通知订阅功能失败
     */
    public static final String SYSC_TIME_SUBS_FAIL = "sync.timerange.subscribe.fail";

    /**
     * 启用用户盒设备通知订阅成功
     */
    public static final String SYSC_SUBBOX_SUBS_SUCCESS = "sync.subBox.subscribe.success";

    /**
     * 启用用户盒设备通知订阅功能失败
     */
    public static final String SYSC_SUBBOX_SUBS_FAIL = "sync.subBox.subscribe.fail";

    /**
     * 时间段同步成功
     */
    public static final String SYSC_TIME_SUCCESS = "sync.timerange.success";

    /**
     * 时间段同步失败
     */
    public static final String SYSC_TIME_FAIL = "sync.timerange.fail";

    /**
     * 号码同步成功
     */
    public static final String SYSC_PHONE_SUCCESS = "sync.phone.success";

    /**
     * 号码同步失败
     */
    public static final String SYSC_PHONE_FAIL = "sync.phone.fail";

    /**
     * 会议同步失败
     */
    public static final String SYSC_CONF_FAIL = "sync.conf.fail";

    /**
     * 会议同步成功
     */
    public static final String SYSC_CONF_SUCCESS = "sync.conf.success";

    /**
     * SIP设备同步成功
     */
    public static final String SYSC_SIP_SUCCESS = "sync.sipEid.success";

    /**
     * SIP设备同步失败
     */
    public static final String SYSC_SIP_FAIL = "sync.sipEid.fail";

    /**
     * 用户盒设备同步成功
     */
    public static final String SYSC_SUBBOX_SUCCESS = "sync.subBox.success";

    /**
     * 用户盒设备同步失败
     */
    public static final String SYSC_SUBBOX_FAIL = "sync.subBox.fail";

    /**
     * 话务台组同步成功
     */
    public static final String SYSC_ATTENDANT_SUCCESS = "sync.Attendant.success";

    /**
     * 话务台组同步失败
     */
    public static final String SYSC_ATTENDANT_FAIL = "sync.Attendant.fail";

    /**
     * 语音+数据会议
     * 
     */
    public static final int CONFER_MODE_VOICE_DATA = 3;

    /**
     * 号码
     */
    public static final String SYNC_PHONE = "syncPhone";

    /**
     * 会议
     */
    public static final String SYNC_CONF = "syncConf";

    /**
     * 与会者
     */
    public static final String SYNC_ATTE = "syncAtte";

    /**
     * 会议字冠
     */
    public static final String SYNC_CALLPERFIXNUM = "syncCallPrefixNum";

    /***
     * SIP号码
     */
    public static final String SYNC_SIP = "syncSip";

    /**
     * 时间段
     */
    public static final String SYNC_TIME_RANGE = "syncTimeRange";

    /**
     * 响应返回码
     */
    public static final String RESPONE_CODE = "code";

    /**
     * 响应返回sessionid
     */
    public static final String RESPONE_SESSIONID = "sessionid";

    /**
     * 鉴权成功
     */
    public static final String RESPONE_CODE_AUTH_SUCCESS = "0";

    /**
     * 默认管理员密码鉴权成功
     */
    public static final String RESPONE_CODE_SUCCESS_DEFALUT_ADMIN = "10";

    /**
     * 非默认管理员密码鉴权成功
     */
    public static final String RESPONE_CODE_SUCCESS_NOT_DEFALUT_ADMIN = "11";

    /**
     * 用户名或密码错误
     */
    public static final String RESPONE_CODE_USER_OR_PASSWORD_ERROR = "1";

    /**
     * 输入密码超过3次
     */
    public static final String RESPONE_CODE_PASSWORD_MAX_TRY_ERROR = "14";

    /**
     * 用户再次登陆剩余时间
     */
    public static final String LOGIN_REMAIN_TIME = "loginremaintime";

    /**
     * https协议
     */
    public static final String HTTPS_PROTOCOL = "https://";

    /**
     * 操作成功响应
     */
    public static final int RESPONE_SUCCESS = 200;

    /**
     * sip语言服务serverid
     * */
    public static final String SIPSERVERID = "5";

    /**
     * sip语言服务长度
     * */
    public static final int SUBSTRING = 120;

    /**
     * 网关类型USM
     */
    public static final String TYPE_USM = "USM";

    /**
     * 网关类型U1900
     */
    public static final String TYPE_U1900 = "U1900";

    /**
     * U19 admin用户
     */
    public static final String ADMIN = "admin";

    /**
     * U19 admin登录
     */
    public static final String ADMIN_TYPE = "1";

    /**
     * U19 普通用户登录
     */
    public static final String COMMON_TYPE = "0";

    /**
     * USM的业务网元
     */
    public static final int USM_MEID = 5;

    /**
     * USM的平台网元
     */
    public static final int OMU_MEID = 0;

    /**
     * 最大会议厅数网关默认值，-1表示不限制
     */
    public static final String MAXCONFROOM = "-1";

    /**
     * BMU跳转网关用 conntype = 1
     */
    public static final String BMU_CONNTYPE = "1";

    /**
     * 描述的长度限制
     */
    public static final int DESCLENGTH = 100;

    /**
     * 区域和接入号首长度限制
     */
    public static final int CODELENGTH = 15;

    /**
     * 匹配数字的正则
     */
    public static final String MATH = "\\d+";
    
    /**
     * 端口最大长度
     */
    public static final int PORTMAXLENGTH = 65535;
    
    /**
     * 端口最小长度
     */
    public static final int PORTMINLENGTH = 0;
    
    /**
     * 网关名称最大长度
     */
    public static final int NAMELENGTH = 85;
    
}
